package com.bootdo.jiashan.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.jiashan.dao.PdtNormDao;
import com.bootdo.jiashan.domain.PdtNormDO;
import com.bootdo.jiashan.service.PdtNormService;



@Service
public class PdtNormServiceImpl implements PdtNormService {
	@Autowired
	private PdtNormDao pdtNormDao;
	
	@Override
	public PdtNormDO get(Integer id){
		return pdtNormDao.get(id);
	}
	
	@Override
	public List<PdtNormDO> list(Map<String, Object> map){
		return pdtNormDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return pdtNormDao.count(map);
	}
	
	@Override
	public int save(PdtNormDO pdtNorm){
		pdtNorm.setCtime(System.currentTimeMillis());
		pdtNorm.setUtime(System.currentTimeMillis());
		return pdtNormDao.insertSelective(pdtNorm);
	}
	
	@Override
	public int update(PdtNormDO pdtNorm){
		return pdtNormDao.update(pdtNorm);
	}
	
	@Override
	public int remove(Integer id){
		return pdtNormDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return pdtNormDao.batchRemove(ids);
	}
	
}
